package cn.wizzer.app.crown.modules.models.enums;

/**
 * 篮球具体玩法枚举
 */
public enum BKBetsEnum {
    // 独赢对应的no1是1
    BK_WIN("独赢",1),
    // 让球对应的no1是2
    BK_LET_BALL("让球",2),
    // 总得分大对应的no1是3
    BK_TOTAL_SCORE("总得分大小",3),
    // 球队得分大对应的no1是4
    BK_TEAM_SCORE_BIG("球队得分大",4),
    // 球队得分小对应的no1是5
    BK_TEAM_SCORE_SMALL("球队得分小",5),
    ;
    final public String NAME;
    final public int VALUE;


    BKBetsEnum(String name, int val) {
        NAME = name;
        VALUE = val;
    }

    public String getBetName() {
        return NAME;
    }

    public int getBetValue() {
        return VALUE;
    }

    public static BKBetsEnum getByValue(int value) {
        for (BKBetsEnum betsEnum : values()) {
            if (betsEnum.getBetValue() == value) {
                return betsEnum;
            }
        }
        return null;
    }
}
